#include "assembler.h"


FILE* inputFile;
FILE* outputFile;

int assembler_main(int argc, char** argv){
	int exitnormally = -1;

	if(argc <= 1){
		fprintf(stderr, "Filename Expected");
		return exitnormally;
	}
	char filename[50];
	strcpy(filename, argv[1]);
	inputFile = fopen(filename, "r");
	outputFile = fopen("machine_code.asc", "w");

	printf("%s\n", filename);
	printf("inputPtr: %i\n", inputFile);
	printf("outputPtr: %i\n", outputFile);
	if(inputFile != NULL && outputFile != NULL){
		printf("am i here?");
		parseInput();
		exitnormally = 0;
	}


	fclose(outputFile);
	fclose(inputFile);
	return exitnormally;
}

void parseInput(){
	printf("hello andrew");
}
